#ifndef SHARED
#define SHARED

/********************************************************************
	created:	2011/01/14
	filename: 	E:\C++\Red\src\Utils\Shared.hpp
	author:		Red
	
	purpose:	Shared Stuff
*********************************************************************/


	#define RED_MAJOR 0
	#define RED_MINOR 0
	#define RED_PATCH 0

	// Platform
	#if defined(_WIN32) || defined(WIN32)
	#	define REDWIN32
	#	include <time.h>
	#else
	#	define REDLINUX
	#	include <sys/time.h>
	#endif


	// String (always used anyway)
	#include <string>

	// RedEngine Types
	#include "RedTypes.hpp"

	// End Of Line
	#define eol "\n"

	/// Returns time in "HH:MM:SS" format
	inline std::string GetTime(){
		time_t tps = time(NULL);
		tm* temps = localtime(&tps);
		char ret[9];
		strftime(ret, 9, "%H:%M:%S", temps);
		return ret;
	}

	/// Returns date in "Day DD MMM YYYY" format
	inline std::string GetDate(){
		time_t tps = time(NULL);
		tm* temps = localtime(&tps);
		char ret[16];
		strftime(ret, 16, "%a %d %b %Y", temps);
		return ret;
	}
#endif
